//
//  ViewController.m
//  LaGouForAnimation
//
//  Created by 苗钧豪 on 16/8/22.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Logo;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *upfield;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *downfield;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *upbtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *downbtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *DengLu;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leftview;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightview;

@end

@implementation ViewController
- (void)viewDidAppear:(BOOL)animated {
    self.Logo.priority = 999;
    self.upfield.priority = 999;
    self.upbtn.priority = 999;
    self.downbtn.priority = 999;
    self.downfield.priority = 999;
    self.DengLu.priority = 999;
    self.leftview.priority = 999;
    self.rightview.priority = 999;
    [UIView animateWithDuration:5 animations:^{
        [self.view layoutIfNeeded];
    }];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
